﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace ObjectEditor.Editor
{
    //public delegate void ObjectSelected(object sender, ObjectSelectedEventArgs args);

    public class ObjectSelectedEventArgs : EventArgs
    {
        public INotifyPropertyChanged Object { get; private set; }
        public IEnumerable<INotifyPropertyChanged> AllObjectsSelected { get; private set; }

        public ObjectSelectedEventArgs(INotifyPropertyChanged obj,IEnumerable<INotifyPropertyChanged> allObjs=null)
        {
            Object = obj;
            AllObjectsSelected = allObjs;
        }
    }

    public interface IObjectEditor
    {
        event EventHandler<ObjectSelectedEventArgs> ObjectSelected;        
    }
}
